<?php defined('SYSPATH') or die('No direct script access.') ?>
      <!-- Fixed navbar -->
      <div class="navbar navbar-default navbar-fixed-top">
        <div class="container">
          <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">Demo Law Lidocs</a>
          </div>
          <div class="collapse navbar-collapse">
<!--////-->
            <ul class="nav navbar-nav">
<?php
foreach($interfaces as $k=>$v)
{
?>
              <!--<?php echo $controller ?>-->
              <li class="<?php echo trim((strtolower($controller) == $v['module']?'active ':'').(count($v['links']) > 1?'dropdown':'')).'">'.HTML::anchor(key($v['links'][0]), current($v['links'][0]).(count($v['links']) > 1?' <span class="caret"></span>':''),count($v['links']) > 1?array( 'class'=>'dropdown-toggle','data-toggle'=>'dropdown'):array()) ?>
<?php
	if (count($v['links']) > 1)
	{
		array_shift($v['links']);
?>
<ul class="dropdown-menu">
<?php
		foreach($v['links'] as $k2=>$v2)
		{
				list($key, $val) = each($v2);
?>
			<li<?php echo ((strtolower($controller)==$key AND $action=='index') OR strtolower($controller).'/'.$action==$key)?' class="active"':'' ?>><?php echo HTML::anchor($key, $val) ?></li>
<?php
		}
?>
</li>
</ul>
<?php
	}
}
?>
            </ul>
<!--////-->

<ul class="nav navbar-nav navbar-right">
      <li class="dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">root <b class="caret"></b></a>
        <ul class="dropdown-menu">
          <li><a href="/logout"><span class="glyphicon glyphicon-log-out"></span> Выйти</a></li>
          <li><a href="#"><span class="glyphicon glyphicon-user"></span> Профайл</a></li>
          <li><a href="#"><span class="glyphicon glyphicon-cog"></span> Настройки</a></li>
        </ul>
      </li>
    </ul>
          </div><!--/.nav-collapse -->
        </div>
      </div>

      <!-- Begin page content -->
      <div id="container_body" class="container">